﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Common.Infrastructure
{
    public enum LibRoundTypeEnum
    {
        /// <summary>
        /// 四舍五入.
        /// </summary>
        四舍五入 = 0,

        /// <summary>
        /// 向上进位.
        /// </summary>
        向上进位 = 1,

        /// <summary>
        /// 向下舍弃.
        /// </summary>
        向下舍弃 = 2,
    }

    public enum EFMessageType
    {
        Error = 0,
        Warning = 1,
        Infomation = 2,
    }

    public enum FilterOrgTypeEnum
    {
        Default = 0,
        IgnoreOrg = 1,
        OnlyOrg = 3,
    }

    public enum ApiGroupOrderEnum
    {
        ASC = 0,
        DESC = 1
    }

    public enum ApiRuleOperateEnum
    {
        等于 = 0,
        不等于 = 1,
        大于 = 2,
        大于等于 = 3,
        小于 = 4,
        小于等于 = 5,
        包含 = 6,
        InByString = 7,
        InByInt = 8,
        前包含 = 9,
        后包含 = 10
    }

    public enum EntityConfigContextTypeEnum
    {
        AllContext = 0,
        Default = 1, 
        TimeContext = 2,
        SpecialContext = 3,
    }

    public enum ContextTypeEnum
    {
        Access = 0,
        DefaultContext = 1,
        TimeContext = 2,
    }

    public enum ContextTimeContextTimeTypeEnum
    {
        Month = 0,
        Year = 1,
        Day = 2,
    }

    public enum DataBaseTypeEnum
    {
        PostgreSQL = 0,
        MySql = 1,
        Sql = 2,
        Oracle = 3,
        MongoDB = 4
    }

    public enum MemberTypeEnum
    {
        User = 0,
        Admin = 1,
        System = 2,
        UnDefine = 3,
    }

    public enum ClientTypeEnum
    {
        Web = 0,
        Client = 1,
        App = 2,
        Winform = 3,
        Operate = 4
    }

    public enum ApiDbParameterParamTypeEnum
    {
        String = 0,
        DateTime = 1,
        Int = 2,
        Decimal = 3,
        Boolean = 4
    }

    public enum LibSequentialGuidType
    {
        /// <summary>
        /// 用于 MySql 和 PostgreSql.
        ///  当使用 <see cref="Guid.ToString()" /> 方法进行格式化时连续.
        /// </summary>
        AsString,

        /// <summary>
        /// 用于 Oracle.
        /// 当使用 <see cref="Guid.ToByteArray()" /> 方法进行格式化时连续.
        /// </summary>
        AsBinary,

        /// <summary>
        /// 用以 SqlServer.
        /// 连续性体现于 GUID 的第4块（Data4）.
        /// </summary>
        AtEnd
    }
}
